html {
  box-sizing: border-box;
  font-weight: 100;
  font-size: 18px;
  height: 100%;
}

body {
  font-family: sans-serif;
  background: 
  linear-gradient(210deg, rgba(88, 18, 132, 0.8), rgba(255, 0, 0, 0) 62%), 
  linear-gradient(127deg, rgba(123, 229, 255, 0.8), rgba(0, 255, 0, 0) 72%), 
  linear-gradient(336deg, rgba(23, 23, 163, 0.8), rgba(0, 0, 255, 0) 62%);
}

ul {
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  min-width: 320px;
  max-width: 532px;
  padding: 50px 20px;  
}

.title {
  margin: 0;
  margin-bottom: 2rem;
  font-size: 3rem;
  color: white;
}

.todos {
  margin: 0;
  padding: 0 14px;
  width: 100%;
  height: 510px;
  overflow: auto;
  
}

.todos::-webkit-scrollbar {
  width: 7px;
  border-radius: 1rem;  
  background-color: #f9f9fd;
}

.todos li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 18px;
  min-height: 66px;
  border-radius: 0.5rem;
  background-color: white;
  box-shadow: 0 10px 10px rgba(35, 35, 35, 0.1);
}

.todos li div {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.todos li:last-child {
  margin-bottom: 0;
}

.todos li.complete {
  color: white;
  background-color: rgb(56, 40, 89);
  text-decoration: line-through;
}

.todo-form {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.main-input {
  border: none;
  outline: none;
  padding: 1rem;
  border-radius: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 30px rgba(35, 35, 35, 0.1);
}

.main-input:hover {
  outline: 1px solid rgb(56, 40, 89);
}

.main-input:focus {
  outline: 1px solid rgb(56, 40, 89);
}

input[type='checkbox'] {
  appearance: none;
  background-color: transparent;
  margin: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid black;
  border-radius: 100%;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
}

input[type='checkbox']::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='30' fill='white' class='bi bi-check2' viewBox='0 -2 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  transform: scale(0);
  transition: all 0.2s ease;
}

input[type='checkbox']:checked {
  background-color: rgb(176, 186, 255);
  border-color: rgb(176, 186, 255);
}

input[type='checkbox']:checked::before {
  transform: scale(1);
}

.add-task {
  border: none;
  outline: 1px solid white;
  padding: 1rem 1.2rem;
  background-color: white;
  border-radius: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 30px rgba(35, 35, 35, 0.1);
}

.add-task:hover {
  background-color: rgb(56, 40, 89);
  color: white;
}

.stats {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  list-style: none;
  color: white;
}

.todos li button {
  border: 0;
  padding: .25rem;
  display: grid;
  place-content: center;
  background-color: transparent;
}

.todos li button svg path {
  transition: all 0.2s ease;
}

.todos li button:hover svg path {
  fill: black;
}

.todos li button:active svg {
  transform: scale(.8);
}

.todos li span {
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  max-width: 350px;
  overflow: auto;
}

.todos li span:focus {
  background-color: rgb(191, 218, 251);
  outline: none;
}

.todos li span[contenteditable]:hover {
  background-color: rgb(191, 218, 251);
}

.remove-task svg {
  pointer-events: none;
}